package com.byxy.shop.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import com.byxy.shop.service.OrderService;

@Controller
public class OrderController {
	
	@Autowired
	private  OrderService orderService;
	
	@GetMapping("orders")
	public String orderListPage(Model model) {
		Map<String, Object> pageResult = new HashMap<>();
		int currPage = 1;
		int totalPage = 1;
		
		model.addAttribute("orderPageResult", null);
		model.addAttribute("currPage", currPage);
		model.addAttribute("totalPage",totalPage);
		return "my-orders";
	}
}
